Skip to content

Conversation

@juliomalegria
Copy link
Contributor

@juliomalegria juliomalegria commented Feb 14, 2022

What does this PR do?

This PR adds track support for Hotjar integration script (Hotjar Events API).

Are there breaking changes in this PR?

No.

Testing

Testing completed successfully

  Hotjar Unit
    Constructing the integration
      ✓ should have the right settings
      ✓ should have the right settings with custom options
    #initialize
      ✓ should call this.ready() with valid options
      ✓ should prepare the needed globals
      ✓ should reject an invalid HJID
    after loading
      #identify
        ✓ should send id and traits
        ✓ should not send attributes when user is anonymous
      #track
        ✓ should send event and ignore properties
        ✓ should not send nameless event

HeadlessChrome 98.0.4758 (Mac OS X 10.15.7): Executed 9 of 9 SUCCESS (0.003 secs / 0.015 secs)
TOTAL: 9 SUCCESS

Any background context you want to provide?

Hotjar now has an Events API. It will be beneficial for Segment and Hotjar users to be able to make use of it seamlessly.

Is there parity with the server-side/android/iOS integration components (if applicable)?

No

Does this require a new integration setting? If so, please explain how the new setting works

No

Links to helpful docs and other external resources

https://help.hotjar.com/hc/en-us/articles/4405109971095-Events-API-Reference

Copy link
Contributor

@arielsilvestri arielsilvestri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@chrisradek chrisradek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@juliomalegria Thank you so much for the update and apologies for the delay in reviewing. This looks great, we'll merge it right away!

@chrisradek chrisradek changed the base branch from master to hotjar-upgrade-track June 2, 2022 19:35
@chrisradek
Copy link
Contributor

chrisradek commented Jun 2, 2022

Merging into feature branch - will create new PR from feature branch to trigger CI.

Edit: PR to trigger CI - #677

@chrisradek chrisradek merged commit d4f9d39 into segmentio:hotjar-upgrade-track Jun 2, 2022
chrisradek added a commit that referenced this pull request Jun 2, 2022
* Added support for Hotjar Events API.

* Start passing properties() to the Event API

* Updated tests to check track with/without properties

Co-authored-by: julio.alegria <julio.alegria@hotjar.com>
Co-authored-by: Ariel Silvestri <arielsilvestri0715@gmail.com>

Co-authored-by: Julio M. Alegria <juliomalegria@users.noreply.github.com>
Co-authored-by: julio.alegria <julio.alegria@hotjar.com>
Co-authored-by: Ariel Silvestri <arielsilvestri0715@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants